package Chapter6;
import java.text.*;
import java.util.*;
public class Example26 {
	public static void main(String[] args) {
		Date date=new Date();
		//FULL格式的日期格式对象
		DateFormat fullformat=DateFormat.getDateInstance(DateFormat.FULL);
		//long
		DateFormat longformat=DateFormat.getDateInstance(DateFormat.LONG);
		//medium
		DateFormat mediumformat=DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM);
		//SHORT
		DateFormat shortformat=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT);
		System.out.println("full  "+fullformat.format(date));
		System.out.println("long   "+longformat.format(date));
		System.out.println("medium  "+mediumformat.format(date));
		System.out.println("short  "+shortformat.format(date));
		
	}

}
